package com.example.wallet.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author 岸
 * 用户钱包
 * walletBalance 钱包余额
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_wallet")
public class Wallet {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private BigDecimal walletBalance;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
}
